home *** CD-ROM | disk | FTP | other *** search
- CD
-
- Sets or displays the current directory.
-
- Format
-
- CD [<dir | pattern>]
-
- Template
-
- DIR
-
- Location
-
- Internal
-
- CD with no arguments displays the name of the current directory. When a valid
- directory name is given, CD makes the named directory the current directory.
-
- You must specify a complete path to the directory since CD does not search
- through the disk for it. If CD cannot find the specified directory in the
- current directory or in the given path, a Can't find <directory> message is
- displayed.
-
- To move up a level in the filing hierarchy to the parent directory of the
- current directory, enter CD followed by a space and a single slash (/). You
- can move to another directory in the parent at the same time by including its
- name after the slash. If the current directory is a root directory, CD / has
- no effect. Use multiple slashes with no spaces between them to refer to
- additional higher levels.
-
- To move directly to the root directory of the current device, use CD followed
- by a space and a colon; for example, CD :
-
- AmigaDOS supports an implied CD so that the CD command itself can often be
- left out. Enter the directory name, path, colon, or slashes at the prompt.
-
- CD also supports pattern matching. When a directory matching the specified
- pattern is found, it becomes the current directory. If more than one
- directory matches the given pattern, an error message is displayed. You
- cannot use pattern matching with implied CD. For more information an pattern
- matching, see Chapter 3.
-
- Example 1:
-
- 1> CD DF1:Work
-
- sets the current directory to the Work directory on the disk in drive DF1:.
-
- Example 2:
-
- 1> CD SYS:Com/Basic
-
- makes the subdirectory Basic in the Com directory the current directory.
-
- Example 3:
-
- 1> //
-
- using the implied CD, moves up two levels in the directory structure.
-
- Example 4:
-
- 1> CD SYS:Li#?
-
- uses the #? pattern to match with the LIBS: directory.
-
- For more examples using the CD command, see Chapter 8.
-